package com.edooteach.tencent.handle;

import java.util.Map;

import com.edooteach.tencent.entity.weappauth.WeappAuth;

/**
 * 
 * @author wangliwang
 *
 */
public interface WeappAuthHandler {

    /**
     * call wechat get openid
     * 
     * @param code
     * @return
     */
    public Map<String, Object> authenticate(String code);
    
    /**
     * get decrypt data
     * 
     * @param encryptedData
     * @param sessionKey
     * @param iv
     * @return
     */
    public WeappAuth decrypt(String encryptedData, String sessionKey, String iv);

}
